package com.feibi.study.View;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.feibi.study.R;

public class MyTextView extends LinearLayout {

    public MyTextView(Context context,String content) {
        super(context);
        LayoutInflater.from(context).inflate(R.layout.view_my_textview, this);
        TextView tv_content = findViewById(R.id.tv_content);
        tv_content.setText(content);
    }
}
